package com.yang.common;


import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.util.List;

@Data
@NoArgsConstructor
@AllArgsConstructor
@ApiModel(value = "分页查询返回结果")
public class PageResult<T> {

    @ApiModelProperty(value = "查询数据总数量")
    private long total;

    @ApiModelProperty(value = "当前页码")
    private int pageNum;

    @ApiModelProperty(value = "当前每页大小")
    private int pageSize;

    @ApiModelProperty(value = "当前页查询的数据")
    private List<T> list;

}
